﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class BptBlueprintChangesItemTable : TableInfo
    {
        public const string C_TableName = "BPT_BLUEPRINT_CHANGES_ITEM";

        public const string C_ID = "ID";
        public const string C_CHANGES_ID = "CHANGES_ID";
        public const string C_CHANGES_CODE = "CHANGES_CODE";
        public const string C_BLUEPRINT_ID = "BLUEPRINT_ID";
        public const string C_REMARKS = "REMARKS";
        public const string C_CHANGE_TYPE = "CHANGE_TYPE";
        public const string C_PLAN_ORDER_ITEM_ID = "PLAN_ORDER_ITEM_ID";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_PRODUCT_CODE = "PRODUCT_CODE";

        public BptBlueprintChangesItemTable()
        {
            _tableName = "BPT_BLUEPRINT_CHANGES_ITEM";
        }

        protected static BptBlueprintChangesItemTable _current;
        public static BptBlueprintChangesItemTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new BptBlueprintChangesItemTable();

            _current.Add(C_ID, new ColumnInfo(C_ID, "Id", true, typeof(string)));
            _current.Add(C_CHANGES_ID, new ColumnInfo(C_CHANGES_ID, "ChangesId", false, typeof(string)));
            _current.Add(C_CHANGES_CODE, new ColumnInfo(C_CHANGES_CODE, "ChangesCode", false, typeof(string)));
            _current.Add(C_BLUEPRINT_ID, new ColumnInfo(C_BLUEPRINT_ID, "BlueprintId", false, typeof(string)));
            _current.Add(C_REMARKS, new ColumnInfo(C_REMARKS, "Remarks", false, typeof(string)));
            _current.Add(C_CHANGE_TYPE, new ColumnInfo(C_CHANGE_TYPE, "ChangeType", false, typeof(string)));
            _current.Add(C_PLAN_ORDER_ITEM_ID, new ColumnInfo(C_PLAN_ORDER_ITEM_ID, "PlanOrderItemId", false, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_PRODUCT_CODE, new ColumnInfo(C_PRODUCT_CODE, "ProductCode", false, typeof(string)));

        }

        public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }

        public ColumnInfo CHANGES_ID
        {
            get { return this[C_CHANGES_ID]; }
        }

        public ColumnInfo CHANGES_CODE
        {
            get { return this[C_CHANGES_CODE]; }
        }

        public ColumnInfo BLUEPRINT_ID
        {
            get { return this[C_BLUEPRINT_ID]; }
        }

        public ColumnInfo REMARKS
        {
            get { return this[C_REMARKS]; }
        }

        public ColumnInfo CHANGE_TYPE
        {
            get { return this[C_CHANGE_TYPE]; }
        }

        public ColumnInfo PLAN_ORDER_ITEM_ID
        {
            get { return this[C_PLAN_ORDER_ITEM_ID]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo PRODUCT_CODE
        {
            get { return this[C_PRODUCT_CODE]; }
        }



    }
}
